﻿@model PhotoPortfolio.Models.Portfolio.PortfolioViewModel
@{
    ViewBag.Title = "Portfolio of " + Model.AuthorBlog;
}
<style type="text/css">
    .container {
        max-width: 90%;
    }
</style>
@if (Model != null)
{
    <div style="display: none">@Model.Temp</div>
    <header class="row">
        @{
    Html.RenderPartial("Header", Model);
        }
    </header>
    <div class="row">
        @{
    Html.RenderPartial("Nav", Model);
        }
        <div class="slideshow-block">
            <div class="fotorama"
                 data-width="1080"
                 data-max-width="100%"
                 data-ratio="16/9"
                 data-nav="thumbs"
                 data-allowfullscreen="native"
                 data-keyboard="true">
                @if (Model.Album != null && Model.Album.Photos != null)
                {
                    foreach (var photo in Model.Album.Photos)
                    {
                        <img src="@Url.Content("~/photos/" + photo.ImageUrl)" data-full="@Url.Content("~/photos/"+photo.ImageFullUrl)" />

                        @*<a href="@Url.Content("~/photos/"+photo.ImageUrl)"></a>*@
                    }
                }
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
}
